package com.yl.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 
 * </p>
 *
 * @author 我的公众号：MarkerHub
 * @since 2021-04-05
 */
@Data
@TableName("t_role")
@EqualsAndHashCode(callSuper = true)
public class RoleEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("角色名")
    @NotBlank(message = "角色名称不能为空")
    private String name;

    @ApiModelProperty("角色编码")
    @NotBlank(message = "角色编码不能为空")
    private String code;

    @ApiModelProperty("备注")
    private String remark;


    @ApiModelProperty("状态")
    private Boolean status;				//状态

}
